import { createStore } from "vuex";

export default createStore({
  state: {
    clientWidth: 0,
    clientHeight: 0,
  },
  getters: {
    getClientHeight: (state) => {
      return state.clientHeight;
    },
    getClientWidth: (state) => {
      return state.clientWidth;
    },
  },
  mutations: {
    setClientHeight(state, clientHeight) {
      state.clientHeight = clientHeight;
    },
    setClientWidth(state, clientWidth) {
      state.clientWidth = clientWidth;
    },
  },
  actions: {},
  modules: {},
});
